POV-Ray : Newsgroups : povray.advanced-users : Finding unknown coordinates : Re: Finding unknown coordinates Server Time
29 Jul 2024 10:31:42 EDT (-0400)
  Re: Finding unknown coordinates  
From: Rohan Bernett
Date: 4 Aug 2002 05:10:16
Message: <web.3d4cee86511b82d02c120f590@news.povray.org>
Simon Adameit wrote:

>Why don't you do it when you place them?

That is basically what I am trying to do.

The code which places the star is this:

 object{star
   translate 1*< randomness*(rand(S1)-0.5), randomness*(rand(S1)-0.5),
randomness*(rand(S1)-0.5)>
   rotate <(rand(S1)-0.5)*360, (rand(S1)-0.5)*360, (rand(S1)-0.5)*360>
   translate <0,0.5,0>
   pigment{rgb<1,1,(rand(S1)*0.9)>}
   }

If I knew where the star was after all these random transforms, it would be
easy, but I don't. Is there a method of doing something like this:
"translate -1*(this.y/2)" ?

Rohan _e_ii


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.